package com.linln.modules.system.vo.admins;

import java.math.BigDecimal;
import java.util.Date;

public class OrderProductVo {


    private String orderId;

    private String orderCode;//

    private String productName;//

    private String prodImage;//

    private String companyName;//

    private String companyImage;//

    private Date createTime;//

    private Date appointTime;//

    private int prodKinds;//

    private String strProdKinds;//

    private int states;//

    private Integer tradeState;
    private Integer tradeType;
    private BigDecimal money;

    private String status;//

    private String nickName;//

    private String address;//

    private String province;//

    private String city;//

    private String town;//

    private String others;//

    private String mobile;//

    private String contact;//

    private String expressCode;//

    private String expressCompany;//

    private int points;//

    private int totalPoints;//

    private int num;//

    private String avatar;

    private Date ate;
    private String subId;

    public String getSubId() {
        return subId;
    }

    public void setSubId(String subId) {
        this.subId = subId;
    }

    public Date getAte() {
        return ate;
    }

    public OrderProductVo setAte(Date ate) {
        this.ate = ate;
        return this;
    }

    public String getAvatar() {
        return avatar;
    }

    public OrderProductVo setAvatar(String avatar) {
        this.avatar = avatar;
        return this;
    }

    public Integer getTradeState() {
        return tradeState;
    }

    public OrderProductVo setTradeState(Integer tradeState) {
        this.tradeState = tradeState;
        return this;
    }

    public Integer getTradeType() {
        return tradeType;
    }

    public OrderProductVo setTradeType(Integer tradeType) {
        this.tradeType = tradeType;
        return this;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public OrderProductVo setMoney(BigDecimal money) {
        this.money = money;
        return this;
    }

    public String getStatus() {
        if(tradeState == null){
            if(states==0){
                return "待寄出";
            } else if(states==1){
                return "已发货";
            } else if(states==2){
                return "到店自取";
            } else if(states==4){
                return "到店体验";
            } else{
                return "";
            }
        }
       else if (tradeState == 0) {
            return "待支付";
        } else if (tradeState == 1) {
            return "待发货";
        } else if (tradeState == 2) {
            return "已发货";
        } else if (tradeState == 3) {
            return "已完成";
        } else if (tradeState == 4) {
            return "已取消";
        }else if (tradeState == 5) {
            return "支付失败";
        }else if (tradeState == 6) {
            return "退款中";
        }else if (tradeState == 7) {
            return "已退款";
        }else if (tradeState == 8) {
            return "售后审核中";
        }else if (tradeState == 9) {
            return "审核通过";
        }else if (tradeState == 10) {
            return "审核未通过";
        }else if (tradeState == 11) {
            return "待体验";
        }else if (tradeState == 12) {
            return "待取件";
        }else {
            if(states==0){
                return "待寄出";
            } else if(states==1){
                return "已发货";
            } else if(states==2){
                return "到店自取";
            } else if(states==4){
                return "到店体验";
            } else{
                return "";
            }
        }

    }

    public String getStrProdKinds() {
        if(prodKinds==0){
            return "医疗服务";
        }
        if(prodKinds==1){
            return "普通礼品";
        }
        if(prodKinds==2){
            return "爱帽饰品";
        }
        return "";
    }

    public String getOrderId() {
        return orderId;
    }

    public OrderProductVo setOrderId(String orderId) {
        this.orderId = orderId;
        return this;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public OrderProductVo setOrderCode(String orderCode) {
        this.orderCode = orderCode;
        return this;
    }

    public String getProductName() {
        return productName;
    }

    public OrderProductVo setProductName(String productName) {
        this.productName = productName;
        return this;
    }

    public String getProdImage() {
        return prodImage;
    }

    public OrderProductVo setProdImage(String prodImage) {
        this.prodImage = prodImage;
        return this;
    }

    public String getCompanyName() {
        return companyName;
    }

    public OrderProductVo setCompanyName(String companyName) {
        this.companyName = companyName;
        return this;
    }

    public String getCompanyImage() {
        return companyImage;
    }

    public OrderProductVo setCompanyImage(String companyImage) {
        this.companyImage = companyImage;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public OrderProductVo setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Date getAppointTime() {
        return appointTime;
    }

    public OrderProductVo setAppointTime(Date appointTime) {
        this.appointTime = appointTime;
        return this;
    }

    public int getProdKinds() {
        return prodKinds;
    }

    public OrderProductVo setProdKinds(int prodKinds) {
        this.prodKinds = prodKinds;
        return this;
    }

    public int getStates() {
        return states;
    }

    public OrderProductVo setStates(int states) {
        this.states = states;
        return this;
    }

    public String getNickName() {
        return nickName;
    }

    public OrderProductVo setNickName(String nickName) {
        this.nickName = nickName;
        return this;
    }

    public String getAddress() {
        StringBuilder sb = new StringBuilder();
        if(this.province!=null){
            sb.append(this.province);
        }
        if(this.city!=null){
            sb.append(this.city);
        }
        if(this.town!=null){
            sb.append(this.town);
        }
        if(this.others!=null){
            sb.append(this.others);
        }
        return sb.toString();
    }


    public String getProvince() {
        return province;
    }

    public OrderProductVo setProvince(String province) {
        this.province = province;
        return this;
    }

    public String getCity() {
        return city;
    }

    public OrderProductVo setCity(String city) {
        this.city = city;
        return this;
    }

    public String getTown() {
        return town;
    }

    public OrderProductVo setTown(String town) {
        this.town = town;
        return this;
    }

    public String getOthers() {
        return others;
    }

    public OrderProductVo setOthers(String others) {
        this.others = others;
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public OrderProductVo setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public String getContact() {
        return contact;
    }

    public OrderProductVo setContact(String contact) {
        this.contact = contact;
        return this;
    }

    public String getExpressCode() {
        return expressCode;
    }

    public OrderProductVo setExpressCode(String expressCode) {
        this.expressCode = expressCode;
        return this;
    }

    public String getExpressCompany() {
        return expressCompany;
    }

    public OrderProductVo setExpressCompany(String expressCompany) {
        this.expressCompany = expressCompany;
        return this;
    }

    public int getPoints() {
        return points;
    }

    public OrderProductVo setPoints(int points) {
        this.points = points;
        return this;
    }

    public int getTotalPoints() {
        return totalPoints;
    }

    public OrderProductVo setTotalPoints(int totalPoints) {
        this.totalPoints = totalPoints;
        return this;
    }

    public int getNum() {
        return num;
    }

    public OrderProductVo setNum(int num) {
        this.num = num;
        return this;
    }
}
